package com.example.dakotanews.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @description 用户实体类，与数据库中user table的类型一致，字段的含义详见数据表设计
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private String profile;
    private String bgImage;
    private String introduction;
    private String phone;
    private LocalDate birthday;
    private int gender;
    private int followerNum;
    private int userFollowingNum;
    private int issueFollowingNum;
    private int sectionFollowingNum;
    private int userType;
    private LocalDateTime createTime;
    private LocalDateTime editTime;
    private int userStatus;
}
